﻿@model IEnumerable<DomainModel.Entities.Vehicle>
@{
    ViewBag.Title = "Vehicle Actions";
}
<h2>@ViewBag.Title</h2>
<p>
    @Html.ActionLink("Vehicle Categories", "Index", "VehicleCategory")
</p>
<p>
    @Html.ActionLink("Vehicle Brands", "Index", "VehicleBrand")
</p>
@*<table>
    <tr>
        <th>
            LastUpdate
        </th>
        <th>
            IsApproved
        </th>
        <th>
            UserName
        </th>
        <th>
            BrandId
        </th>
        <th>
            Model
        </th>
        <th>
            CategoryId
        </th>
        <th>
            IsAc
        </th>
        <th>
            Passengers
        </th>
        <th>
            FuelType
        </th>
        <th>
            FuelType_Ar
        </th>
        <th>
            Name
        </th>
        <th>
            Name_Ar
        </th>
        <th>
            Description
        </th>
        <th>
            Description_Ar
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.LastUpdate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsApproved)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UserName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.BrandId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Model)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CategoryId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsAc)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Passengers)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FuelType)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FuelType_Ar)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Name_Ar)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Description_Ar)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.VehicleId }) |
            @Html.ActionLink("Details", "Details", new { id=item.VehicleId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.VehicleId })
        </td>
    </tr>
}

</table>*@ 